package com.ruoyi.trackapply.domain;


import cn.hutool.core.date.DatePattern;
import cn.hutool.core.date.DateUtil;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * COLLECT_GNSS_卫星_RECORD  不同卫星分开存放,公共的结构
 */
@Data
public class CollectGnssPO {


    //观测时间
    private Date obs_time;

    private BigDecimal position_x;
    private BigDecimal position_y;
    private BigDecimal position_z;
    private BigDecimal speed_vx;
    private BigDecimal speed_vy;
    private BigDecimal speed_vz;


    @Override
    public String toString() {
        StringBuffer stringBuffer = new StringBuffer();
        stringBuffer.append(DateUtil.format(obs_time, DatePattern.UTC_SIMPLE_PATTERN)).append("  ")
                .append(position_x.toPlainString()).append("  ")
                .append(position_y.toPlainString()).append("  ")
                .append(position_z.toPlainString()).append("  ")
                .append(speed_vx.toPlainString()).append("  ")
                .append(speed_vy.toPlainString()).append("  ")
                .append(speed_vz.toPlainString()).append("  ");

        return stringBuffer.toString();
    }
}
